package com.wsb.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wsb.entry.SmbmsRole;
import com.wsb.entry.SmbmsUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.stream.BaseStream;

@Mapper
public interface SmbmsUserDao extends BaseMapper<SmbmsUser> {
    //根据userCode字段查询SmbmsUser表，如果查到了，就返回一条数据，并封装到SmbmsUser对象中去
    SmbmsUser getSmbmsUserCode(String userCode);
List<SmbmsUser> getSmbmsUserAll();
    List<SmbmsRole> getSmbmsRoleAll();
    void addSmbmsUser(SmbmsUser smbmsUser);
    void  delSmbmsUser(long id);
    void  updSmbmsUser(SmbmsUser smbmsUser);
    //resultType                         parameterType
    SmbmsUser getSmbmsUserById(Long id);
}
